package com.youthfilmic.yuejian.dao;

import com.youthfilmic.yuejian.domain.Certification;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

/**
 * Created by youweixi on 15/10/7.
 */
public interface CertificationDao extends CrudRepository<Certification , Long> {

    Certification findByUserId(Long userId);

    Page<Certification> findByStatus(int status , Pageable pageable);

    Page<Certification> findAll(Pageable pageable);
}
